import web

urls = (
    '/(.*)', 'index'
)

app_session = web.application(urls, globals())
session = web.session.Session(app_session, web.session.DiskStore('sessions'), initializer = {'count' : 0})

class index:
    def GET(self, path):
        session.count = int(session.count) + int(path)
        print web.config.session_parameters
        return str(session.count)